-- GENERATED SPELL FOR [Yara] --


function spell0_28917(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28917', 2252, 1)
end

function spell1_28917(pUnit, Event) --@Sprint,Self--
pUnit:FullCastSpellOnTarget(48594,pUnit)
pUnit:RegisterEvent('Sorts_28917', 15276, 1)
end

function spell2_28917(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(14516,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28917', 619, 1)
end

function Sorts_28917(pUnit, Event)
local choix_sorts_28917 = math.random(0, 2)
if choix_sorts_28917 == 0 then
pUnit:RegisterEvent('spell0_28917', 1, 1)
end
if choix_sorts_28917 == 1 then
pUnit:RegisterEvent('spell1_28917', 1, 1)
end
if choix_sorts_28917 == 2 then
pUnit:RegisterEvent('spell2_28917', 1, 1)
end
end

function mob28917_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28917', math.random(1500, 3000), 1)
end

function mob28917_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28917_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28917_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28917, 1, 'mob28917_Action')
RegisterUnitEvent(28917, 2, 'mob28917_Leave')
RegisterUnitEvent(28917, 3, 'mob28917_Kill')
RegisterUnitEvent(28917, 4, 'mob28917_Die')
